package com.normalsys.live.bean;

import lombok.Data;

@Data
public class CommonQueryParamBean {

    private Integer pageNo;

    private Integer pageSize;

    private String nickName;

    private String phone;

    private Long userId;

    private String queryTime;

    /**
     * 1 身高
     * 2 体重
     * 3 胸围
     * 4 腰围
     * 5 臀围
     * 6 心率
     * 7 bmi
     */
    private Integer type;

    private String goal;

    public Integer getPageNo() {
        if(null == pageNo || pageNo < 1) {
            return 1;
        }
        return pageNo;
    }

    public Integer getPageSize() {
        if(null == pageSize || pageSize < 1) {
            return 15;
        }
        return pageSize;
    }
}